home *** CD-ROM | disk | FTP | other *** search
- ; $VER: DNetPutFiles 1.4 (21.3.93)
- ; by Thomas Witt [ EMail: mozart@zelator.in-berlin.de / IRC: `Bach' ]
- ;
- ; Do the following Entries in Toolmanager 2.0:
- ;
- ; Programtype: CLI, Arguments on,
- ; Command: NewShell CON:352/402/372/80/GetFiles from S:DNetPutFiles.bat
- ; ^^^^^^^^^^^^^^
- ; Your preferabled size of the Window
- ;
- ; Set the Variable DNetUL to your preferabled directory for uploads.
- ;
- ; This File is FD
-
-
- Echo "H" NOLINE
- UnSet Filename
- SetEnv Filename "_DUMMY"
- FailAt 22
-
- IF NOT EXISTS ENV:DNetUL
- GetFile VAR=Filename TITLE="Upload which file..." OK=Upload CANCEL=Abort DIR=SYS:
- ELSE
- GetFile VAR=Filename TITLE="Upload which file..." OK=Upload CANCEL=Abort DIR=$DNetUL
- ENDIF
-
- Echo "DNetPutFiles by Thomas Witt"
- Wait 1
- IF $Filename EQ "_DUMMY"
- Echo "Aborted..."
- SKIP END
- EndIF
-
- IF NOT EXISTS ENV:DNetUL
- Echo "Uploading file `$Filename'"
- ELSE
- Echo "Uploading file `$Filename' to Directory $DNetUL"
- EndIF
-
- PutFiles $Filename
-
- If FAIL
- Echo "File not found or DNet not running"
- ELSE
- Echo "Done"
- EndIF
-
- LAB END
-
- UnSet Filename
-
- Wait 2
-
- EndCLI
-